$OpenBSD: patch-Makefile.in,v 1.2 2015/01/17 22:58:12 naddy Exp $
--- Makefile.in.orig	Thu May  4 17:11:25 2000
+++ Makefile.in	Sat Jan 17 23:52:24 2015
@@ -12,6 +12,8 @@ exec_prefix=@exec_prefix@
 TARGETNAME=@sbindir@/tircproxy
 STRIP=@STRIP@
 
+DESTDIR= 
+
 ALL_CFLAGS=-Wall -I. -I@srcdir@ $(CFLAGS)
 
 .SUFFIXES:
@@ -29,20 +31,20 @@ tircproxy.static:	tircproxy.o
 	pgp -sba $@ -u 3004
 
 manual:
-	@(cd docs; make all)
+	@cd docs; $(MAKE) all
 
-all:	tircproxy tircproxy.static documentation
+all:	tircproxy
 
 install:	tircproxy
-	$(INSTALL) -o bin -g bin -m 555 tircproxy $(TARGETNAME)
-	$(INSTALL) -o root -g man -m 644 tircproxy.8 $(prefix)/man/man8/
+	$(INSTALL) -o bin -g bin -m 555 tircproxy $(DESTDIR)$(TARGETNAME)
+	$(INSTALL) -o root -g wheel -m 444 tircproxy.8 $(DESTDIR)$(prefix)/man/man8
 
 install-strip: install
-	$(STRIP) $(TARGETNAME)
+	$(STRIP) $(DESTDIR)$(TARGETNAME)
 
 clean:
 	rm -f tircproxy.o tircproxy tircproxy.static *~ .*~ *.bak *.tar.gz*
-	@(cd docs; make clean)
+	@cd docs; $(MAKE) clean
 
 dist-clean:	clean
 	rm -f config.h config.cache config.status config.log *.asc
